Telegram Group & Telegram Channel
👩‍💻 Что выведет этот код?

A) True
B) False
C) Error
D) Другое

❗️ Ответ: B (False). Объяснение:

🔍 Числа с плавающей точкой представлены в двоичном формате, и это приводит к некоторым ошибкам округления. 0,2 хранится как 0,200000111, 0,1 хранится как 0,100000055, поэтому при их сложении 0,3 хранится как 0,30000000044. Но само 0,3 хранится как 0,299999.

@python_testit
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/python_testit/1101
Create:
Last Update:

👩‍💻 Что выведет этот код?

A) True
B) False
C) Error
D) Другое

❗️ Ответ: B (False). Объяснение:

🔍 Числа с плавающей точкой представлены в двоичном формате, и это приводит к некоторым ошибкам округления. 0,2 хранится как 0,200000111, 0,1 хранится как 0,100000055, поэтому при их сложении 0,3 хранится как 0,30000000044. Но само 0,3 хранится как 0,299999.

@python_testit

BY Python tests




Share with your friend now:
tg-me.com/python_testit/1101

View MORE
Open in Telegram


Python tests Telegram | DID YOU KNOW?

Date: |

Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.Python tests from hk


Telegram Python tests
FROM USA